package org.cuatrovientos.school;

import java.util.Arrays;

public class Teacher extends Person {
	private String degree;
	private String  [] subjects;

	public Teacher() {
		degree = "DAM";
		subjects = new String[2];
		subjects[1] =" 2DAM";
		subjects[0] = "1DAM";
	}

	/**
	 * @return the degree
	 */
	protected String getDegree() {
		return degree;
	}

	/**
	 * @param degree the degree to set
	 */
	protected void setDegree(String degree) {
		this.degree = degree;
	}

	/**
	 * @return the subjects
	 */
	protected String[] getSubjects() {
		return subjects;
	}

	/**
	 * @param subjects the subjects to set
	 */
	protected void setSubjects(String[] subjects) {
		this.subjects = subjects;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Teacher [degree=" + degree + ", subjects="
				+ Arrays.toString(subjects) + ", toString()="
				+ super.toString() + "]";
	}

}


